STEP 6: Let's make something happen when our sprite reaches the object it's going to!
Click on . Drag Collision into the bottom of your program.
Click Run and watch what happens when your sprite collides with the hat.
Events are a special kind of code that runs only if something happens to trigger the event. Sometimes we trigger events with the keyboard or the mouse. In this case, the event will run when our sprite collides with another sprite.
To navigate the page using the TAB key, first press ESC to exit the code editor.
Are you already running a Codesters project in another tab or window?
Micro:bit can only connect to one web page at a time.
Try stopping other Codesters projects or closing
other tabs or windows that may be using your Micro:bit.
If that doesn't fix the problem try disconnecting your Micro:bit,
reloading this page, and reconnecting your Micro:bit.